package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DeviceregisterMapper;
import com.ruoyi.system.domain.Deviceregister;
import com.ruoyi.system.service.IDeviceregisterService;

/**
 * 产品注册Service业务层处理
 * 
 * @author tianxingxia
 * @date 2025-02-07
 */
@Service
public class DeviceregisterServiceImpl implements IDeviceregisterService 
{
    @Autowired
    private DeviceregisterMapper deviceregisterMapper;

    /**
     * 查询产品注册
     * 
     * @param registerId 产品注册主键
     * @return 产品注册
     */
    @Override
    public Deviceregister selectDeviceregisterByRegisterId(Long registerId)
    {
        return deviceregisterMapper.selectDeviceregisterByRegisterId(registerId);
    }

    /**
     * 查询产品注册列表
     * 
     * @param deviceregister 产品注册
     * @return 产品注册
     */
    @Override
    public List<Deviceregister> selectDeviceregisterList(Deviceregister deviceregister)
    {
        return deviceregisterMapper.selectDeviceregisterList(deviceregister);
    }

    /**
     * 新增产品注册
     * 
     * @param deviceregister 产品注册
     * @return 结果
     */
    @Override
    public int insertDeviceregister(Deviceregister deviceregister)
    {
        return deviceregisterMapper.insertDeviceregister(deviceregister);
    }

    /**
     * 修改产品注册
     * 
     * @param deviceregister 产品注册
     * @return 结果
     */
    @Override
    public int updateDeviceregister(Deviceregister deviceregister)
    {
        return deviceregisterMapper.updateDeviceregister(deviceregister);
    }

    /**
     * 批量删除产品注册
     * 
     * @param registerIds 需要删除的产品注册主键
     * @return 结果
     */
    @Override
    public int deleteDeviceregisterByRegisterIds(Long[] registerIds)
    {
        return deviceregisterMapper.deleteDeviceregisterByRegisterIds(registerIds);
    }

    /**
     * 删除产品注册信息
     * 
     * @param registerId 产品注册主键
     * @return 结果
     */
    @Override
    public int deleteDeviceregisterByRegisterId(Long registerId)
    {
        return deviceregisterMapper.deleteDeviceregisterByRegisterId(registerId);
    }
}
